<?php

namespace Database\Seeders;

use Dcat\Admin\Models;
use Illuminate\Database\Seeder;
use DB;

class AdminTablesSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // base tables
        Models\Menu::truncate();
        Models\Menu::insert(
            [
                [
                    "id" => 1,
                    "parent_id" => 0,
                    "order" => 1,
                    "title" => "Index",
                    "icon" => "feather icon-bar-chart-2",
                    "uri" => "dashboard",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => NULL
                ],
                [
                    "id" => 2,
                    "parent_id" => 0,
                    "order" => 18,
                    "title" => "Admin",
                    "icon" => "feather icon-settings",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 3,
                    "parent_id" => 2,
                    "order" => 19,
                    "title" => "Users",
                    "icon" => "",
                    "uri" => "auth/users",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 4,
                    "parent_id" => 2,
                    "order" => 20,
                    "title" => "Roles",
                    "icon" => "",
                    "uri" => "auth/roles",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 5,
                    "parent_id" => 2,
                    "order" => 21,
                    "title" => "Permission",
                    "icon" => NULL,
                    "uri" => "auth/permissions",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 6,
                    "parent_id" => 2,
                    "order" => 22,
                    "title" => "Menu",
                    "icon" => NULL,
                    "uri" => "auth/menu",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 7,
                    "parent_id" => 2,
                    "order" => 23,
                    "title" => "Extensions",
                    "icon" => "",
                    "uri" => "auth/extensions",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 108,
                    "parent_id" => 2,
                    "order" => 24,
                    "title" => "Operation Log",
                    "icon" => NULL,
                    "uri" => "auth/operation-logs",
                    "extension" => "dcat-admin.operation-log",
                    "show" => 1,
                    "created_at" => "2024-08-22 08:13:53",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 109,
                    "parent_id" => 0,
                    "order" => 2,
                    "title" => "公司管理",
                    "icon" => "feather icon-package",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 08:36:54",
                    "updated_at" => "2024-08-22 08:38:23"
                ],
                [
                    "id" => 110,
                    "parent_id" => 109,
                    "order" => 3,
                    "title" => "钉钉应用",
                    "icon" => "feather icon-monitor",
                    "uri" => "ding",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 08:37:24",
                    "updated_at" => "2024-08-22 08:38:23"
                ],
                [
                    "id" => 111,
                    "parent_id" => 109,
                    "order" => 4,
                    "title" => "部门",
                    "icon" => "fa-cubes",
                    "uri" => "department",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 08:37:52",
                    "updated_at" => "2024-08-22 08:38:23"
                ],
                [
                    "id" => 112,
                    "parent_id" => 109,
                    "order" => 5,
                    "title" => "员工",
                    "icon" => "fa-user-o",
                    "uri" => "user",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 08:38:18",
                    "updated_at" => "2024-08-22 08:38:23"
                ],
                [
                    "id" => 113,
                    "parent_id" => 0,
                    "order" => 17,
                    "title" => "选项管理",
                    "icon" => "feather icon-more-horizontal",
                    "uri" => "option",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 14:10:04",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 114,
                    "parent_id" => 0,
                    "order" => 12,
                    "title" => "复诊部",
                    "icon" => "feather icon-grid",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 14:18:34",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 115,
                    "parent_id" => 114,
                    "order" => 15,
                    "title" => "接待设置",
                    "icon" => "fa-gears",
                    "uri" => "reception?type=1",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 14:19:04",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 116,
                    "parent_id" => 114,
                    "order" => 16,
                    "title" => "接待记录",
                    "icon" => "fa-history",
                    "uri" => "reception-log",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 14:19:43",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 117,
                    "parent_id" => 0,
                    "order" => 7,
                    "title" => "销售部",
                    "icon" => "feather icon-grid",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 14:20:20",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 118,
                    "parent_id" => 117,
                    "order" => 8,
                    "title" => "客户",
                    "icon" => "fa-users",
                    "uri" => "customer?type=0",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 14:21:17",
                    "updated_at" => "2024-08-27 04:41:15"
                ],
                [
                    "id" => 119,
                    "parent_id" => 117,
                    "order" => 9,
                    "title" => "业绩",
                    "icon" => "fa-dollar",
                    "uri" => "sale-performance",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-22 14:22:03",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 120,
                    "parent_id" => 114,
                    "order" => 13,
                    "title" => "客户",
                    "icon" => "fa-users",
                    "uri" => "customer?type=1",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-23 06:11:58",
                    "updated_at" => "2024-08-27 04:41:26"
                ],
                [
                    "id" => 121,
                    "parent_id" => 114,
                    "order" => 14,
                    "title" => "业绩",
                    "icon" => "fa-dollar",
                    "uri" => "return-performance",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-24 06:24:01",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 122,
                    "parent_id" => 117,
                    "order" => 11,
                    "title" => "统计总览",
                    "icon" => "fa-bar-chart-o",
                    "uri" => "statistics-sale",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-24 08:17:50",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 123,
                    "parent_id" => 117,
                    "order" => 10,
                    "title" => "接待设置",
                    "icon" => "fa-gears",
                    "uri" => "reception?type=0",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-27 04:27:41",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 124,
                    "parent_id" => 0,
                    "order" => 6,
                    "title" => "接待",
                    "icon" => "feather icon-grid",
                    "uri" => NULL,
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-27 04:38:03",
                    "updated_at" => "2024-08-27 04:38:10"
                ],
                [
                    "id" => 125,
                    "parent_id" => 124,
                    "order" => 25,
                    "title" => "客户",
                    "icon" => "fa-users",
                    "uri" => "customer?type=2",
                    "extension" => "",
                    "show" => 1,
                    "created_at" => "2024-08-27 04:41:05",
                    "updated_at" => "2024-08-27 04:41:05"
                ]
            ]
        );

        Models\Permission::truncate();
        Models\Permission::insert(
            [
                [
                    "id" => 1,
                    "name" => "Auth management",
                    "slug" => "auth-management",
                    "http_method" => "",
                    "http_path" => "",
                    "order" => 19,
                    "parent_id" => 0,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 2,
                    "name" => "Users",
                    "slug" => "users",
                    "http_method" => "",
                    "http_path" => "/auth/users*",
                    "order" => 20,
                    "parent_id" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 3,
                    "name" => "Roles",
                    "slug" => "roles",
                    "http_method" => "",
                    "http_path" => "/auth/roles*",
                    "order" => 21,
                    "parent_id" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 4,
                    "name" => "Permissions",
                    "slug" => "permissions",
                    "http_method" => "",
                    "http_path" => "/auth/permissions*",
                    "order" => 22,
                    "parent_id" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 5,
                    "name" => "Menu",
                    "slug" => "menu",
                    "http_method" => "",
                    "http_path" => "/auth/menu*",
                    "order" => 23,
                    "parent_id" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 6,
                    "name" => "Extension",
                    "slug" => "extension",
                    "http_method" => "",
                    "http_path" => "/auth/extensions*",
                    "order" => 24,
                    "parent_id" => 1,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 17,
                    "name" => "主页",
                    "slug" => "index",
                    "http_method" => "",
                    "http_path" => "/dashboard",
                    "order" => 1,
                    "parent_id" => 0,
                    "created_at" => "2023-07-24 13:33:08",
                    "updated_at" => "2023-07-28 17:30:43"
                ],
                [
                    "id" => 294,
                    "name" => "公司管理",
                    "slug" => "company",
                    "http_method" => "",
                    "http_path" => "",
                    "order" => 2,
                    "parent_id" => 0,
                    "created_at" => "2024-08-22 14:05:54",
                    "updated_at" => "2024-08-22 14:07:27"
                ],
                [
                    "id" => 295,
                    "name" => "钉钉应用",
                    "slug" => "ding",
                    "http_method" => "",
                    "http_path" => "/ding*",
                    "order" => 3,
                    "parent_id" => 294,
                    "created_at" => "2024-08-22 14:06:24",
                    "updated_at" => "2024-08-22 14:07:27"
                ],
                [
                    "id" => 296,
                    "name" => "部门",
                    "slug" => "department",
                    "http_method" => "",
                    "http_path" => "/department*",
                    "order" => 4,
                    "parent_id" => 294,
                    "created_at" => "2024-08-22 14:06:49",
                    "updated_at" => "2024-08-22 14:07:27"
                ],
                [
                    "id" => 297,
                    "name" => "员工",
                    "slug" => "user",
                    "http_method" => "",
                    "http_path" => "/user*",
                    "order" => 5,
                    "parent_id" => 294,
                    "created_at" => "2024-08-22 14:07:22",
                    "updated_at" => "2024-08-22 14:07:27"
                ],
                [
                    "id" => 298,
                    "name" => "选项管理",
                    "slug" => "option",
                    "http_method" => "",
                    "http_path" => "/option*",
                    "order" => 18,
                    "parent_id" => 0,
                    "created_at" => "2024-08-22 14:11:03",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 299,
                    "name" => "销售部",
                    "slug" => "sale",
                    "http_method" => "",
                    "http_path" => "",
                    "order" => 8,
                    "parent_id" => 0,
                    "created_at" => "2024-08-23 06:13:34",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 300,
                    "name" => "客户",
                    "slug" => "sale-customer",
                    "http_method" => "",
                    "http_path" => "/customer*",
                    "order" => 9,
                    "parent_id" => 299,
                    "created_at" => "2024-08-23 06:13:59",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 301,
                    "name" => "业绩",
                    "slug" => "sale-performance",
                    "http_method" => "",
                    "http_path" => "/sale-performance*",
                    "order" => 10,
                    "parent_id" => 299,
                    "created_at" => "2024-08-23 12:31:43",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 302,
                    "name" => "复诊部",
                    "slug" => "return-visit",
                    "http_method" => "",
                    "http_path" => "",
                    "order" => 13,
                    "parent_id" => 0,
                    "created_at" => "2024-08-24 05:19:49",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 303,
                    "name" => "客户",
                    "slug" => "return-customer",
                    "http_method" => "",
                    "http_path" => "/customer*",
                    "order" => 14,
                    "parent_id" => 302,
                    "created_at" => "2024-08-24 05:21:35",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 304,
                    "name" => "接待设置",
                    "slug" => "reception-return-visit",
                    "http_method" => "",
                    "http_path" => "/reception*",
                    "order" => 16,
                    "parent_id" => 302,
                    "created_at" => "2024-08-24 05:22:02",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 305,
                    "name" => "接待记录",
                    "slug" => "reception-log",
                    "http_method" => "",
                    "http_path" => "/reception-log*",
                    "order" => 17,
                    "parent_id" => 302,
                    "created_at" => "2024-08-24 05:22:38",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 306,
                    "name" => "业绩",
                    "slug" => "return-performance",
                    "http_method" => "",
                    "http_path" => "/return-performance*",
                    "order" => 15,
                    "parent_id" => 302,
                    "created_at" => "2024-08-24 06:24:22",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 307,
                    "name" => "统计总览",
                    "slug" => "statistics-sale",
                    "http_method" => "",
                    "http_path" => "/statistics-sale*",
                    "order" => 11,
                    "parent_id" => 299,
                    "created_at" => "2024-08-24 08:18:31",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 308,
                    "name" => "接待设置",
                    "slug" => "reception-sale",
                    "http_method" => "",
                    "http_path" => "/reception*",
                    "order" => 12,
                    "parent_id" => 299,
                    "created_at" => "2024-08-27 04:29:19",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 309,
                    "name" => "接待",
                    "slug" => "reception",
                    "http_method" => "",
                    "http_path" => "",
                    "order" => 6,
                    "parent_id" => 0,
                    "created_at" => "2024-08-27 05:15:39",
                    "updated_at" => "2024-08-27 05:16:39"
                ],
                [
                    "id" => 310,
                    "name" => "客户",
                    "slug" => "reception-customer",
                    "http_method" => "",
                    "http_path" => "/customer*",
                    "order" => 7,
                    "parent_id" => 309,
                    "created_at" => "2024-08-27 05:16:12",
                    "updated_at" => "2024-08-27 05:16:39"
                ]
            ]
        );

        Models\Role::truncate();
        Models\Role::insert(
            [
                [
                    "id" => 1,
                    "name" => "Administrator",
                    "slug" => "administrator",
                    "data_permission" => 0,
                    "created_at" => "2023-05-23 02:11:32",
                    "updated_at" => "2023-05-23 02:11:32"
                ],
                [
                    "id" => 30,
                    "name" => "销售部",
                    "slug" => "sale",
                    "data_permission" => 1,
                    "created_at" => "2024-08-22 15:15:55",
                    "updated_at" => "2024-08-22 15:15:55"
                ],
                [
                    "id" => 31,
                    "name" => "复诊部",
                    "slug" => "return-visit",
                    "data_permission" => 1,
                    "created_at" => "2024-08-22 15:16:25",
                    "updated_at" => "2024-08-24 05:27:30"
                ],
                [
                    "id" => 32,
                    "name" => "销售主管",
                    "slug" => "sale-manage",
                    "data_permission" => 0,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "id" => 33,
                    "name" => "复诊部主管",
                    "slug" => "return-visit-manage",
                    "data_permission" => 0,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "id" => 34,
                    "name" => "接待",
                    "slug" => "reception",
                    "data_permission" => 1,
                    "created_at" => "2024-08-27 05:15:10",
                    "updated_at" => "2024-08-27 05:44:03"
                ]
            ]
        );

        Models\Setting::truncate();
		Models\Setting::insert(
			[

            ]
		);

		Models\Extension::truncate();
		Models\Extension::insert(
			[
                [
                    "id" => 5,
                    "name" => "dcat-admin.operation-log",
                    "version" => "1.0.0",
                    "is_enabled" => 1,
                    "options" => NULL,
                    "created_at" => "2024-08-22 08:13:53",
                    "updated_at" => "2024-08-22 08:13:57"
                ],
                [
                    "id" => 6,
                    "name" => "dengje.gallery",
                    "version" => "1.0.0",
                    "is_enabled" => 1,
                    "options" => NULL,
                    "created_at" => "2024-08-22 08:13:54",
                    "updated_at" => "2024-08-22 08:13:58"
                ],
                [
                    "id" => 7,
                    "name" => "super-eggs.dcat-distpicker",
                    "version" => "2.1.1",
                    "is_enabled" => 1,
                    "options" => NULL,
                    "created_at" => "2024-08-22 08:13:55",
                    "updated_at" => "2024-08-22 08:13:59"
                ]
            ]
		);

		Models\ExtensionHistory::truncate();
		Models\ExtensionHistory::insert(
			[
                [
                    "id" => 9,
                    "name" => "dcat-admin.operation-log",
                    "type" => 2,
                    "version" => "1.0.0",
                    "detail" => "create_opration_log_table.php",
                    "created_at" => "2024-08-22 08:13:51",
                    "updated_at" => "2024-08-22 08:13:51"
                ],
                [
                    "id" => 10,
                    "name" => "dcat-admin.operation-log",
                    "type" => 1,
                    "version" => "1.0.0",
                    "detail" => "Initialize extension.",
                    "created_at" => "2024-08-22 08:13:53",
                    "updated_at" => "2024-08-22 08:13:53"
                ],
                [
                    "id" => 11,
                    "name" => "dengje.gallery",
                    "type" => 1,
                    "version" => "1.0.0",
                    "detail" => "Initialize extension.",
                    "created_at" => "2024-08-22 08:13:54",
                    "updated_at" => "2024-08-22 08:13:54"
                ],
                [
                    "id" => 12,
                    "name" => "super-eggs.dcat-distpicker",
                    "type" => 1,
                    "version" => "1.0.0",
                    "detail" => "Initialize extension.",
                    "created_at" => "2024-08-22 08:13:55",
                    "updated_at" => "2024-08-22 08:13:55"
                ],
                [
                    "id" => 13,
                    "name" => "super-eggs.dcat-distpicker",
                    "type" => 1,
                    "version" => "2.1.1",
                    "detail" => "新增多级显示",
                    "created_at" => "2024-08-22 08:13:55",
                    "updated_at" => "2024-08-22 08:13:55"
                ],
                [
                    "id" => 14,
                    "name" => "super-eggs.dcat-distpicker",
                    "type" => 1,
                    "version" => "2.1.1",
                    "detail" => "新增数据回显方法",
                    "created_at" => "2024-08-22 08:13:55",
                    "updated_at" => "2024-08-22 08:13:55"
                ],
                [
                    "id" => 15,
                    "name" => "super-eggs.dcat-distpicker",
                    "type" => 1,
                    "version" => "2.1.1",
                    "detail" => "修复一对多显示异常",
                    "created_at" => "2024-08-22 08:13:55",
                    "updated_at" => "2024-08-22 08:13:55"
                ]
            ]
		);

        // pivot tables
        DB::table('admin_permission_menu')->truncate();
		DB::table('admin_permission_menu')->insert(
			[
                [
                    "permission_id" => 294,
                    "menu_id" => 109,
                    "created_at" => "2024-08-22 14:05:54",
                    "updated_at" => "2024-08-22 14:05:54"
                ],
                [
                    "permission_id" => 295,
                    "menu_id" => 110,
                    "created_at" => "2024-08-22 14:06:24",
                    "updated_at" => "2024-08-22 14:06:24"
                ],
                [
                    "permission_id" => 296,
                    "menu_id" => 111,
                    "created_at" => "2024-08-22 14:06:49",
                    "updated_at" => "2024-08-22 14:06:49"
                ],
                [
                    "permission_id" => 297,
                    "menu_id" => 112,
                    "created_at" => "2024-08-22 14:07:22",
                    "updated_at" => "2024-08-22 14:07:22"
                ],
                [
                    "permission_id" => 298,
                    "menu_id" => 113,
                    "created_at" => "2024-08-22 14:11:03",
                    "updated_at" => "2024-08-22 14:11:03"
                ],
                [
                    "permission_id" => 299,
                    "menu_id" => 117,
                    "created_at" => "2024-08-23 06:13:34",
                    "updated_at" => "2024-08-23 06:13:34"
                ],
                [
                    "permission_id" => 300,
                    "menu_id" => 118,
                    "created_at" => "2024-08-23 06:13:59",
                    "updated_at" => "2024-08-23 06:13:59"
                ],
                [
                    "permission_id" => 301,
                    "menu_id" => 119,
                    "created_at" => "2024-08-23 12:31:43",
                    "updated_at" => "2024-08-23 12:31:43"
                ],
                [
                    "permission_id" => 302,
                    "menu_id" => 114,
                    "created_at" => "2024-08-24 05:19:49",
                    "updated_at" => "2024-08-24 05:19:49"
                ],
                [
                    "permission_id" => 303,
                    "menu_id" => 120,
                    "created_at" => "2024-08-24 05:21:35",
                    "updated_at" => "2024-08-24 05:21:35"
                ],
                [
                    "permission_id" => 304,
                    "menu_id" => 115,
                    "created_at" => "2024-08-24 05:22:02",
                    "updated_at" => "2024-08-24 05:22:02"
                ],
                [
                    "permission_id" => 305,
                    "menu_id" => 116,
                    "created_at" => "2024-08-24 05:22:38",
                    "updated_at" => "2024-08-24 05:22:38"
                ],
                [
                    "permission_id" => 306,
                    "menu_id" => 121,
                    "created_at" => "2024-08-24 06:24:22",
                    "updated_at" => "2024-08-24 06:24:22"
                ],
                [
                    "permission_id" => 307,
                    "menu_id" => 122,
                    "created_at" => "2024-08-24 08:18:31",
                    "updated_at" => "2024-08-24 08:18:31"
                ],
                [
                    "permission_id" => 308,
                    "menu_id" => 123,
                    "created_at" => "2024-08-27 04:29:19",
                    "updated_at" => "2024-08-27 04:29:19"
                ],
                [
                    "permission_id" => 309,
                    "menu_id" => 124,
                    "created_at" => "2024-08-27 05:15:39",
                    "updated_at" => "2024-08-27 05:15:39"
                ],
                [
                    "permission_id" => 310,
                    "menu_id" => 125,
                    "created_at" => "2024-08-27 05:16:12",
                    "updated_at" => "2024-08-27 05:16:12"
                ]
            ]
		);

        DB::table('admin_role_menu')->truncate();
        DB::table('admin_role_menu')->insert(
            [
                [
                    "role_id" => 1,
                    "menu_id" => 2,
                    "created_at" => "2023-07-24 13:36:56",
                    "updated_at" => "2023-07-24 13:36:56"
                ],
                [
                    "role_id" => 30,
                    "menu_id" => 1,
                    "created_at" => "2024-08-22 15:15:55",
                    "updated_at" => "2024-08-22 15:15:55"
                ],
                [
                    "role_id" => 30,
                    "menu_id" => 117,
                    "created_at" => "2024-08-22 15:15:55",
                    "updated_at" => "2024-08-22 15:15:55"
                ],
                [
                    "role_id" => 30,
                    "menu_id" => 118,
                    "created_at" => "2024-08-22 15:15:55",
                    "updated_at" => "2024-08-22 15:15:55"
                ],
                [
                    "role_id" => 30,
                    "menu_id" => 119,
                    "created_at" => "2024-08-22 15:15:55",
                    "updated_at" => "2024-08-22 15:15:55"
                ],
                [
                    "role_id" => 31,
                    "menu_id" => 1,
                    "created_at" => "2024-08-24 05:23:01",
                    "updated_at" => "2024-08-24 05:23:01"
                ],
                [
                    "role_id" => 31,
                    "menu_id" => 114,
                    "created_at" => "2024-08-22 15:16:25",
                    "updated_at" => "2024-08-22 15:16:25"
                ],
                [
                    "role_id" => 31,
                    "menu_id" => 120,
                    "created_at" => "2024-08-24 05:23:01",
                    "updated_at" => "2024-08-24 05:23:01"
                ],
                [
                    "role_id" => 31,
                    "menu_id" => 121,
                    "created_at" => "2024-08-24 07:02:56",
                    "updated_at" => "2024-08-24 07:02:56"
                ],
                [
                    "role_id" => 32,
                    "menu_id" => 1,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "role_id" => 32,
                    "menu_id" => 117,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "role_id" => 32,
                    "menu_id" => 118,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "role_id" => 32,
                    "menu_id" => 119,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "role_id" => 32,
                    "menu_id" => 122,
                    "created_at" => "2024-08-24 09:56:05",
                    "updated_at" => "2024-08-24 09:56:05"
                ],
                [
                    "role_id" => 32,
                    "menu_id" => 123,
                    "created_at" => "2024-08-27 04:29:42",
                    "updated_at" => "2024-08-27 04:29:42"
                ],
                [
                    "role_id" => 33,
                    "menu_id" => 1,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "menu_id" => 114,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "menu_id" => 115,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "menu_id" => 116,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "menu_id" => 120,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "menu_id" => 121,
                    "created_at" => "2024-08-24 07:03:04",
                    "updated_at" => "2024-08-24 07:03:04"
                ],
                [
                    "role_id" => 34,
                    "menu_id" => 1,
                    "created_at" => "2024-08-27 05:15:10",
                    "updated_at" => "2024-08-27 05:15:10"
                ],
                [
                    "role_id" => 34,
                    "menu_id" => 124,
                    "created_at" => "2024-08-27 05:15:10",
                    "updated_at" => "2024-08-27 05:15:10"
                ],
                [
                    "role_id" => 34,
                    "menu_id" => 125,
                    "created_at" => "2024-08-27 05:15:10",
                    "updated_at" => "2024-08-27 05:15:10"
                ]
            ]
        );

        DB::table('admin_role_permissions')->truncate();
        DB::table('admin_role_permissions')->insert(
            [
                [
                    "role_id" => 30,
                    "permission_id" => 17,
                    "created_at" => "2024-08-24 05:23:23",
                    "updated_at" => "2024-08-24 05:23:23"
                ],
                [
                    "role_id" => 30,
                    "permission_id" => 300,
                    "created_at" => "2024-08-23 06:14:23",
                    "updated_at" => "2024-08-23 06:14:23"
                ],
                [
                    "role_id" => 30,
                    "permission_id" => 301,
                    "created_at" => "2024-08-23 12:31:54",
                    "updated_at" => "2024-08-23 12:31:54"
                ],
                [
                    "role_id" => 31,
                    "permission_id" => 17,
                    "created_at" => "2024-08-24 05:23:01",
                    "updated_at" => "2024-08-24 05:23:01"
                ],
                [
                    "role_id" => 31,
                    "permission_id" => 303,
                    "created_at" => "2024-08-24 05:23:01",
                    "updated_at" => "2024-08-24 05:23:01"
                ],
                [
                    "role_id" => 31,
                    "permission_id" => 306,
                    "created_at" => "2024-08-24 07:02:56",
                    "updated_at" => "2024-08-24 07:02:56"
                ],
                [
                    "role_id" => 32,
                    "permission_id" => 17,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "role_id" => 32,
                    "permission_id" => 300,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "role_id" => 32,
                    "permission_id" => 301,
                    "created_at" => "2024-08-24 05:23:45",
                    "updated_at" => "2024-08-24 05:23:45"
                ],
                [
                    "role_id" => 32,
                    "permission_id" => 307,
                    "created_at" => "2024-08-24 09:56:05",
                    "updated_at" => "2024-08-24 09:56:05"
                ],
                [
                    "role_id" => 32,
                    "permission_id" => 308,
                    "created_at" => "2024-08-27 04:29:42",
                    "updated_at" => "2024-08-27 04:29:42"
                ],
                [
                    "role_id" => 33,
                    "permission_id" => 17,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "permission_id" => 303,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "permission_id" => 304,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "permission_id" => 305,
                    "created_at" => "2024-08-24 05:24:15",
                    "updated_at" => "2024-08-24 05:24:15"
                ],
                [
                    "role_id" => 33,
                    "permission_id" => 306,
                    "created_at" => "2024-08-24 07:03:04",
                    "updated_at" => "2024-08-24 07:03:04"
                ],
                [
                    "role_id" => 34,
                    "permission_id" => 17,
                    "created_at" => "2024-08-27 05:15:10",
                    "updated_at" => "2024-08-27 05:15:10"
                ],
                [
                    "role_id" => 34,
                    "permission_id" => 310,
                    "created_at" => "2024-08-27 05:16:26",
                    "updated_at" => "2024-08-27 05:16:26"
                ]
            ]
        );

        // finish
    }
}
